<?php

use App\Services\Tools\HelpService;

$appEnv = HelpService::getAppEnv();

$databasePath = base_path().'/config/resource.'.$appEnv.'.php';

if (file_exists($databasePath)) return include_once $databasePath;
// 如果文件不存在，则使用正式的配置20230802 by LC
return [
    //todo 获取积分
    'zccmzjgyxm' => [
        'http_uri' => 'https://api.zccmzjgyxm.org.cn',
        //生成秘钥
        'accesstoken' => '/api/v1.sequence/accesstoken',
        //获取某个用户信息
        'get_user_info' => '/api/v1.sequence/getUserInfo',
        //获取某个用户的捐赠积分
        'get_user_score' => '/api/v1.sequence/getUserScore',
        //消耗某个用户的捐赠积分
        'consume_user_score' => '/api/v1.sequence/consumeUserScore',
        //返还某个用户的捐赠积分
        'return_user_score' => '/api/v1.sequence/returnUserScore',
        // 预付费冻结申请
        'advance_score_apply'=>'/api/v1.sequence/advanceScoreApply',
        // 预付费冻结完成
        'advance_score_success'=>'/api/v1.sequence/advanceScoreSuccess',
        // 预付费冻结取消
        'advance_score_cancel'=>'/api/v1.sequence/advanceScoreCancel',
    ],

    //todo SDK活体检测V2版
    'shumaidata' => [
        'http_uri' => 'https://api.shumaidata.com',
        //根据SDK返回的加密字符串获取活体检测结果以及人脸照片
        'face_photos' => '/v2/life-sdk/check',
        //人脸身份证比对
        'comparison_of_certificates' => 'v4/face_id_card/compare'
    ]
];
